// 分类接口
export interface Category {
  id: string;
  name: string;
  description: string;
  parentId: string | null;
  order: number;
  icon: string;
  path: string;
  subCategories?: Category[];
}

// 标签接口
export interface Tag {
  id: string;
  name: string;
  count: number;
}

// 代码块接口
export interface CodeBlock {
  language: string;
  code: string;
  description: string;
}

// 演示接口
export interface Demo {
  type: string;
  url: string;
}

// 内容接口
export interface Content {
  overview: string;
  implementation: string;
  codeBlocks: CodeBlock[];
  notes: string;
  demo: Demo;
}

// 元数据接口
export interface Metadata {
  createTime: string;
  updateTime: string;
  version: string;
}

// 实现接口
export interface Implementation {
  id: string;
  title: string;
  description: string;
  category: {
    main: string;
    sub: string;
  };
  tags: string[];
  difficulty: string;
  content: Content;
  metadata: Metadata;
}
